package com.sdp.wz.db.wz_inventory.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wz_inventory")
public class WzInventory extends Model<WzInventory> {

    private static final long serialVersionUID=1L;

    /**
     * 内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 盘存名称
     */
    @TableField("inventory_name")
    private String inventoryName;

    /**
     * 盘存时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("inventory_time")
    private LocalDateTime inventoryTime;

    /**
     * 仓库
     */
    @TableField("warehouse_code")
    private String warehouseCode;

    /**
     * 操作人工号
     */
    @TableField("op_no")
    private String opNo;

    /**
     * 操作人姓名
     */
    @TableField("op_name")
    private String opName;

    /**
     * 生成时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 备注
     */
    @TableField("inventory_remark")
    private String inventoryRemark;

    /**
     * 盘点状态
     */
    @TableField("inventory_state")
    private String inventoryState;

    /**
     * 处理状态
     */
    @TableField("handle_state")
    private String handleState;

    /**
     * 所属公司
     */
    @TableField("org_no")
    private String orgNo;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
